package com.codebyorder.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.codebyorder.entity.Doc;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 29038
* @description 针对表【doc(文档)】的数据库操作Mapper
* @createDate 2022-12-14 09:06:42
* @Entity com.codebyorder.entity.Doc
*/
public interface DocMapper extends BaseMapper<Doc> {
    List<Doc> selectByName(@Param("name") String name);

    int increaseViewCount(@Param("id") Long id);

    int increaseVoteCount(@Param("id") Long id);

    int updateEbookInfo();
}




